<template>
  <p>数据：</p>
  <duPre :code="code0"></duPre>
</template>

<script setup>
const code0 = `
{
  "errcode": 0,
  "errmsg": "操作成功",
  "sysErrMsg": null,
  "result": [{
    "id": "1",
    "order": 1,
    "name": "仪表盘",
    "isIndex": true,
    "path": "dashboard",
    "menu": [{
      "path": "index",
      "meta": {
        "title": "首页",
        "cache": true
      },
      "isTopmenu": true
    }]
  },
    {
      "id": "2",
      "order": 2,
      "name": "使用手册",
      "isIndex": false,
      "path": "module1",
      "menu": [{
        "path": "menu1",
        "meta": {
          "title": "菜单",
          "cache": false
        },
        "isTopmenu": true,
        "children": [{
          "path": "test1",
          "meta": {
            "title": "接口",
            "cache": false
          },
          "children": [{
            "path": "test1-1",
            "meta": {
              "title": "数据说明",
              "cache": false
            },
            "children": []
          },{
            "path": "test1-2",
            "meta": {
              "title": "数据预览",
              "cache": false
            },
            "children": []
          }]
        },
          {
            "path": "test2",
            "meta": {
              "title": "测试2",
              "cache": false
            },
            "children": []
          },
          {
            "path": "test3",
            "meta": {
              "title": "测试3",
              "cache": false
            },
            "children": []
          }
        ]
      },
        {
          "path": "pzwj",
          "meta": {
            "title": "配置文件",
            "cache": true
          },
          "isTopmenu": true,
          "children": []
        },
        {
          "path": "menu3",
          "meta": {
            "title": "用户",
            "cache": true
          },
          "isTopmenu": true,
          "children": []
        },
        {
          "path": "/page1",
          "meta": {
            "title": "白名单1",
            "cache": false
          },
          "isTopmenu": true,
          "isWhiteList": true,
          "target": "_blank",
          "children": []
        },
        {
          "path": "http://www.baidu.com",
          "meta": {
            "title": "百度",
            "cache": false
          },
          "isTopmenu": true,
          "isOutLink": true,
          "target": "_blank",
          "children": []
        }
      ]
    },
    {
      "id": "3",
      "order": 3,
      "name": "财务管理",
      "isIndex": false,
      "path": "module2",
      "menu": [{
        "path": "menu2",
        "meta": {
          "title": "系统初始化",
          "cache": false
        },
        "isTopmenu": true,
        "children": [{
          "path": "test1",
          "meta": {
            "title": "启用日期",
            "cache": false
          },
          "children": []
        }]
      }]
    },
    {
      "id": "4",
      "order": 4,
      "name": "vue3知识点",
      "isIndex": false,
      "path": "module_vue3",
      "menu": [{
        "path": "menu2",
        "meta": {
          "title": "v-model",
          "cache": false
        },
        "isTopmenu": true,
        "children": []
      }]
    },
    {
      "id": "5",
      "order": 5,
      "name": "setup知识点",
      "isIndex": false,
      "path": "module_setup",
      "menu": [{
        "path": "await",
        "meta": {
          "title": "顶层 await",
          "cache": false
        },
        "isTopmenu": true,
        "children": []
      }]
    },
    {
      "id": "6",
      "order": 6,
      "name": "vueUse知识点",
      "isIndex": false,
      "path": "module_vueuse",
      "menu": [{
        "path": "useFullscreenDemo",
        "meta": {
          "title": "useFullscreen",
          "cache": false
        },
        "isTopmenu": true,
        "children": []
      }]
    }
  ]
}

`
</script>

<style scoped></style>
